All code is written in the R programming language. The files as organized as follows:
1) synthetic_data_code.R -- contains code to replicate the experiment with synthetic data
2) civil_wars_estimates.R -- contains code to replicate the analysis of the effect of democratic political institutions on civil war occurence and saves estimates to a .csv
3) civil_wars_plots.R -- makes figures from the civil war estimates
4) split_samp_mcseq_funs.R -- file with functions to estimate the MCSE. Sourced by civil_wars_estimates.R

This code requires that the following R packages (available from CRAN) be installed:
    -data.table
    -ggplot2
    -ggthemes
    -monomvn
    -lfe 
    -vdemdata
    -MASS
    -dply
    -tidyverse

